/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/<a href="https://www.kaaction.com">KAA</a>"><a href="https://www.kaaction.com">KAA</a></a> All rights reserved.
 */
package com.kaaction.modules.ka.utils;

import java.util.List;
import com.kaaction.common.utils.SpringContextHolder;
import com.kaaction.modules.ka.dao.KaCanalDao;
import com.kaaction.modules.ka.dao.KaCarrierDao;
import com.kaaction.modules.ka.dao.KaCategoryDao;
import com.kaaction.modules.ka.dao.KaColorDao;
import com.kaaction.modules.ka.dao.KaSizeDao;
import com.kaaction.modules.ka.dao.KaSupplierDao;
import com.kaaction.modules.ka.dao.MaterialDetailsDao;
import com.kaaction.modules.sys.entity.Dict;

/**
 * 
 * @author huanghaiming
 * @version 2017-4-25
 */
public class CatUtils {
	
	private static KaSupplierDao kaSupplierDao = SpringContextHolder.getBean(KaSupplierDao.class);//供应商
	
	private static MaterialDetailsDao materialDetailsDao = SpringContextHolder.getBean(MaterialDetailsDao.class);//物料明细
	
	private static KaCategoryDao kaCategoryDao = SpringContextHolder.getBean(KaCategoryDao.class);//类别
	
	private static KaColorDao kaColorDao = SpringContextHolder.getBean(KaColorDao.class);//颜色
	
	private static KaSizeDao kaSizeDao = SpringContextHolder.getBean(KaSizeDao.class);//尺码
	
	private static KaCanalDao kaCanalDao = SpringContextHolder.getBean(KaCanalDao.class);//渠道
	
	private static KaCarrierDao kaCarrierDao = SpringContextHolder.getBean(KaCarrierDao.class);//快递
	
	public static List<Dict> getSupplier() {
		return kaSupplierDao.getSupplier();
	}
	
	public static List<Dict> getMateria() {
		return materialDetailsDao.getMateria();
	}
	
	public static List<Dict> getCategory() {
		return kaCategoryDao.getCategory();
	}
	
	public static List<Dict> getColor() {
		return kaColorDao.getColor();
	}
	
	public static List<Dict> getSize() {
		return kaSizeDao.getSize();
	}
	
	public static List<Dict> getCanal() {
		return kaCanalDao.getCanal();
	}
	
	public static List<Dict> getCarrier() {
		return kaCarrierDao.getCarrier();
	}
}
